package com.xdl.flytest.bean;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;
import java.util.Map;

/**
 * @Auther: 80736
 * @Date: 2019/1/2 17:54
 * @Description:
 */

@Document(collection = "interfaceInfo")
public class InterfaceInfo extends Interface {

    // mongodb 自增id
    @Id
    private String _id;

    // 请求类型（get、post、put、delete）
    private String type;

    // 请求参数
    private Map<String, Object> params;

    // 请求head
    private Map<String, Object> headers;

    // 请求body
    private Body body;

    @Override
    public String toString() {
        return "InterfaceInfo{" +
                "type='" + type + '\'' +
                ", params=" + params +
                ", headers=" + headers +
                ", body=" + body +
                '}';
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public Map<String, Object> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, Object> headers) {
        this.headers = headers;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }

}
